from behavioral.mediator.DB import DB
from behavioral.mediator.Reporter import Reporter
from behavioral.mediator.TC import TC
from behavioral.mediator.TestManager import TestManager

if __name__ == '__main__':
    reporter = Reporter()
    db = DB()
    tm = TestManager()
    tm.setReporter(reporter)
    tm.setDB(db)
    reporter.setTM(tm)
    db.setTM(tm)
    while (True):
        tc = TC(tm)
        tc.setTM(tm)
        tm.setTC(tc)
        tc.setup()
        tc.execute()
        tc.tearDown()
